ISlave.RequestState 方法

请求 EtherCAT 从站进入到一个特定的 EtherCAT 状态。例如,若状态为 Op,而所请求的状态为 PreOp,则 状态变更将为 Op -> SafeOp -> PreOp;若状态为 Init,而所请求的状态为 Op,则 状态变更将为 Init -> PreOp -> SafeOp -> Op。

命名空间IntervalZero.KINGSTAR.Base.Class

组合: IntervalZero.KINGSTAR.Base.Class (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0

语法

C#VB
IKsCommand RequestState(
       EthercatState state
)
Function RequestState(
       state As EthercatState
) As IKsCommand

参数

state

型别:EthercatState

请求的 EtherCAT 状态。

回传值

型别:IKsCommand

回传一个方法的状态。

备注

可用的 EtherCAT 状态

ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP

参见

ISlave 介面

IntervalZero.KINGSTAR.Base.Class 命名空间